import cv2 as cv
import numpy as np


def main():
    img = cv.imread('../data/test.png', 0)
    rows, cols = img.shape

    M = np.float32([[1, 0, -70], [0, 1, 50]])

    dst = cv.warpAffine(img, M, (cols, rows))

    cv.imshow('Original Image', img)
    cv.imshow('Translated Image', dst)

    cv.waitKey(0)
    cv.destroyAllWindows()


if __name__ == "__main__":
    main()
